/**
* ...
* @author Default
* @version 0.1
*/

package org.anivision.plugins {
	import org.anivision.document.MeshDocument;
	import org.aswing.*;
	import org.anivision.DataStore;
	import flash.events.*;

	public class MeshPlugin extends Plugin {
		private var _newMenuItem:JMenuItem;
		
		public function MeshPlugin() {
			
		}
		
		public override function get name():String {
			return 'MeshPlugin';
		}
		
		public override function init(store:DataStore):void {
			super.init(store);
			_newMenuItem = App.setNewDocumentMenuItem('New Mesh', __onNew);
		}
		
		private function __onNew(e:Event):void {
			App.documentManager.addDocument(new MeshDocument(), true);
		}
		
	}
	
}
